import { Metadata } from 'next';
import { HeroSection } from '@/components/hero-section';
import { ArchitectureDiagram } from '@/components/architecture-diagram';
import { FinancialSolutions } from '@/components/financial-solutions';
import { PerformanceChart } from '@/components/charts/performance-chart';
import { CodeExample } from '@/components/code/code-example';
import { Testimonials } from '@/components/testimonials';

export const metadata: Metadata = {
  title: 'CActor - 高性能金融级Actor框架 | 仓颉语言实现',
  description:
    'CActor是基于仓颉语言开发的高性能Actor框架，专为金融行业设计。提供毫秒级响应、百万级并发处理能力，支持高频交易、实时支付、智能风控等金融场景。',
  keywords: [
    'CActor',
    'Actor框架',
    '仓颉语言',
    '金融科技',
    '高频交易',
    '实时支付',
    '智能风控',
    '分布式系统',
    '高并发',
    '低延迟',
    '金融级',
    '华为',
    'HarmonyOS',
    '鸿蒙',
    '性能优化',
  ],
  authors: [{ name: 'CActor Team' }],
  creator: 'CActor Team',
  publisher: 'CActor',
  formatDetection: {
    email: false,
    address: false,
    telephone: false,
  },
  metadataBase: new URL('https://cactor.dev'),
  alternates: {
    canonical: '/',
    languages: {
      'zh-CN': '/',
      'en-US': '/en',
    },
  },
  openGraph: {
    title: 'CActor - 高性能金融级Actor框架',
    description:
      'CActor是基于仓颉语言开发的高性能Actor框架，专为金融行业设计。提供毫秒级响应、百万级并发处理能力。',
    url: 'https://cactor.dev',
    siteName: 'CActor',
    images: [
      {
        url: '/og-image.png',
        width: 1200,
        height: 630,
        alt: 'CActor - 高性能金融级Actor框架',
      },
    ],
    locale: 'zh_CN',
    type: 'website',
  },
  twitter: {
    card: 'summary_large_image',
    title: 'CActor - 高性能金融级Actor框架',
    description:
      'CActor是基于仓颉语言开发的高性能Actor框架，专为金融行业设计。提供毫秒级响应、百万级并发处理能力。',
    images: ['/twitter-image.png'],
    creator: '@CActor_Dev',
  },
  robots: {
    index: true,
    follow: true,
    googleBot: {
      index: true,
      follow: true,
      'max-video-preview': -1,
      'max-image-preview': 'large',
      'max-snippet': -1,
    },
  },
  verification: {
    google: 'google-site-verification-code',
    yandex: 'yandex-verification-code',
    yahoo: 'yahoo-site-verification-code',
  },
};

/**
 * CActor框架官网首页
 * 展示核心价值主张、性能指标和金融解决方案
 */
export default function HomePage() {
  return (
    <>
      <HeroSection />
      <ArchitectureDiagram />
      <PerformanceChart />
      <FinancialSolutions />
      <CodeExample />
      <Testimonials />
    </>
  );
}
